package com.yasaka.stock.model;

public class TTerm implements Comparable<TTerm> {

	private String FKeyWord;
	private int FFrequency;
	private String FTran;

	public String getKeyWord() {
		return FKeyWord;
	}

	public int getFrequency() {
		return FFrequency;
	}

	public String getTran() {
		return FTran;
	}

	public void setKeyWord(String aKeyWord) {
		FKeyWord = aKeyWord;
	}

	public void setFrequency(int aFrequency) {
		FFrequency = aFrequency;
	}

	public void setTran(String aTran) {
		FTran = aTran;
	}

	@Override
	public String toString() {
		return String.format("%s  %s  %s", FKeyWord, FFrequency, FTran);

	}

	@Override
	public int compareTo(TTerm aO) {
		 if(this.FFrequency > aO.getFrequency()){
	            return -1;
	        }
	        else if(this.FFrequency<aO.getFrequency())
	            return 1;
	        else
	            return 0;
	}

}
